package com.asset.dispoal.plaintiffConfiguration.domain.db.mapper;

import com.asset.dispoal.plaintiffConfiguration.domain.db.entity.SysPlaintiffConfiguration;
import com.asset.dispoal.plaintiffConfiguration.domain.db.entity.SysPlaintiffCourt;
import com.asset.dispoal.plaintiffFile.dto.PlaintiffFileResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import tech.mhuang.pacebox.springboot.core.mapper.BaseMapper;

import java.util.List;

/**
 * 案件原告配置表JDBC接口
 *
 * @author: mhuang
 * @date: 2022-03-21 15:43:49
 */
@Mapper
public interface SysPlaintiffConfigurationMapper extends BaseMapper<SysPlaintiffConfiguration, String> {

    List<PlaintiffFileResponse> queryPlaintiffFile(@Param("list") List<String> ids);

    Integer insertCourt(@Param("plaintiffId") String generateId, @Param("courtId") String courtId);

    Integer deleteCourtByPlaintiffId(@Param("plaintiffId") String id);

    List<SysPlaintiffCourt> queryPlaintiffCourtByPlaintiffIdList(@Param("plaintiffIdList") List<String> plaintiffId);
}